<div class="acsgp_body_menu"><a href="/admin-acsgp-modules">{elang m=admin s=acsgp t=List}</a></div>
<div class="acsgp_body_menu acsgp_body_menu_selected">{elang m=admin s=acsgp t="Access map"}: {$smarty.get.acsMap|escape}</div>
<div style="clear:both;"></div>
<br />

<form method="post">

<input type="submit" value="{elang m=admin s=acsgp t='Save changes'}" />
{if is_array($overwrited_access)} &nbsp; <a href="?toDefault={$smarty.get.acsMap|escape}" onClick="return confirm('{elang m=admin s=acsgp t='Confirm to default'}')">{elang m=admin s=acsgp t="To default"}</a>{/if}
<br />
{foreach from=$default_access key=df_name item=df_array}
 <div style="float:left; margin:7px;">
  <b>{$df_name}</b>({if $df_array.0==1}да{else}нет{/if}) - {$df_array.1}<br />
 
  <table cellpadding="0" cellspacing="0" style="margin-left:10px;">
   {foreach from=$acsGroups item=group}
   <tr>
    <td><input type="checkbox" name="acs[{$df_name}][{$group.acsgp}]" value="on"
     {if isset($overwrited_access[$group.acsgp][$df_name])}
      {if $overwrited_access[$group.acsgp][$df_name] == 1} checked="checked"{/if}
     {else}
      {if $df_array.0 == 1} checked="checked"{/if}
     {/if} /></td>
    <td><a href="/admin-acsgp-groups?about={$group.acsgp}">{$group.name}</a></td>
   </tr>
   {/foreach}
  </table>
 </div>
{/foreach}
<div style="clear: both;"></div>

<input type="submit" value="{elang m=admin s=acsgp t='Save changes'}" />

<input type="hidden" name="submit" value="acsMap" />
</form>